/**
 * Created by Administrator on 15-11-6.
 */
window.onload=function(){
    var url=getUrl();
    var userid =getUserId();
    $(".log-yjfk").on("click",function(){

        var content=$("#content").val();
        $.jsonp({
            url: 'http://'+url+'/api/recommend/feedback',
            data: {userId:userid,content:content},
            callbackParameter: "callback",
            success: function (data, textStatus, xOptions) {

                location.href="shezhi.html"
            },
            error: function (xOptions,textStatus) {
            }
        });
    });
}
